package be.idamf.flash.system;

import flash.utils.ByteArray;
import flash.system.ApplicationDomain;

class InlineTest {
	
	public static function test():Void {
		var address:Int;
		var byteArray:ByteArray = new ByteArray();
		byteArray.length = ApplicationDomain.MIN_DOMAIN_MEMORY_LENGTH * 1024;
		
		Memory.select(byteArray);
		
		for (address in 0 ... byteArray.length - 1)
			Memory.writeByte(address, address);
		
		for (address in 0 ... byteArray.length - 1)
			Memory.readByte(address);
	}
}